//package com.wxy.demo.config;
//
//import com.wxy.demo.interceptor.LogInterceptor;
//import com.wxy.demo.interceptor.MyInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * <p>
// *
// * </p>
// *
// * @author e-Xiaoyuan.Wang
// * @since 2022/9/1 16:22
// */
//@Configuration
//public class WebConfig implements WebMvcConfigurer {
//
//    @Autowired
//    private MyInterceptor myInterceptor;
//
//    @Autowired
//    private LogInterceptor logInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(myInterceptor).addPathPatterns("/**");
////        registry.addInterceptor(logInterceptor).addPathPatterns("/**");
//    }
//}
//
